package com.broaddeep.safe.ovaldemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val imv = findViewById<ImageView>(R.id.iv_demo)
        AnimationUtils.circleAnimation(0f,dp(100f),dp(300f),dp(-100f),imv)
    }

    fun dp(v:Float):Float{
      return  resources.displayMetrics.density*v
    }
}